﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DrawAGraph
{
    internal class CreateShapeFactory : IShapeFactory
    {
        protected Color color;
        public CreateShapeFactory(Color color)
        {
            this.color = color;
        }
        public Circle CircleCreator()
        {
            return new Circle(color);
        }
        public Rectangle RectangleCreator()
        {
            return new Rectangle(color);
        }
        public Triangle TriangleCreator()
        {
            return new Triangle(color);
        }
        public Ellipse EllipseCreator()
        {
            return new Ellipse(color);
        }
    }
}
